package devgui;

import java.util.Observable;
import java.util.Observer;

import javax.swing.JFrame;
import javax.swing.JPanel;

import chess.ChessState;

public class DevGUI implements Observer{
	private ChessState board;
	public JPanel p;
	public JFrame f;

	
	public DevGUI(ChessState c){
		board = c;
		
		f = new JFrame("chess");
		
		p = new DevChessPanel(c, 300);
		p.setSize(300, 300);

		f.setPreferredSize(p.getSize());
		f.add(p);
		f.pack();
		f.setVisible(true);
		
		c.addObserver(this);
	}

	public void update(Observable o, Object arg) {
		if(o == board){

		}
		
	}


}
